package cn.lopr.hfbdqn.configuration.datasource;

import com.alibaba.druid.pool.DruidDataSource;
import org.apache.ibatis.datasource.pooled.PooledDataSourceFactory;

/**
 * @author shuangyang7
 * @date 2021/7/21 9:02
 */
public class DruidDataSourceFactory extends PooledDataSourceFactory {
    public DruidDataSourceFactory() {
        DruidDataSource druidDataSource = new DruidDataSource();
        druidDataSource.setKeepAlive(true);
        druidDataSource.setMinEvictableIdleTimeMillis(60000);
        this.dataSource = druidDataSource;

    }
}
